#!/bin/bash
date "+%Y-%m-%d %H:%M:%S"
tag_time=$(date -d $3 +'%Y%m%d%H%M%S')
if [ $1 = start ] && [ $2 = all ]
then
sleep 5;
echo "start init img of java-k8s"
ansible-playbook --extra-vars "profile=prod module=java-k8s time=$tag_time" ./docker-task.yml
echo "the img initialization of cn-config-server finished"
fi
